package org.xserver.disruptor.core;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.stereotype.Repository;
@Repository
public class DisruptorParam {
    private int ringBufferSize = 1024;
    private int threadNum = 4;

    public int getRingBufferSize() {
        return ringBufferSize;
    }

    public void setRingBufferSize(int ringBufferSize) {
        this.ringBufferSize = ringBufferSize;
    }

    public int getThreadNum() {
        return threadNum;
    }

    public void setThreadNum(int threadNum) {
        this.threadNum = threadNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("ringBufferSize", ringBufferSize)
                .toString();
    }
}
